﻿using System.Web.Mvc;

namespace RestUpMVC.SampleWeb.Controllers
{
    public class ProjectController : Controller
    {
        //
        // GET: /Project/

        public ActionResult List()
        {
            return this.RestOk(new { data = new []{ new {ID = 1, Name = "RestUpMVC Alpha 5"}, new {ID = 2, Name = "Mow Lawn"} }});
        }

        public ActionResult Get()
        {
            return this.RestOk(new {ID = "1"});
        }
    }
}
